From cef052b6215844083ba4890fa670d54bdfb0a730 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 11 Feb 2009 10:45:34 +0000 Subject: [PATCH] xend: PCIQuirk`__devIsUnconstrained refers to an undeclared variable if /etc/xen/xend-pci-permissive.sxp doesn't exist. Signed-off-by: David Edmondson --- tools/python/xen/xend/server/pciquirk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/server/pciquirk.py b/tools/python/xen/xend/server/pciquirk.py index c8f8f6d392..702c3b2a50 100644 --- a/tools/python/xen/xend/server/pciquirk.py +++ b/tools/python/xen/xend/server/pciquirk.py @@ -123,7 +123,8 @@ class PCIQuirk: log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE) self.pci_perm_dev_config = ['xend-pci-perm-devs'] - devices = child_at(child(pci_perm_dev_config, 'unconstrained_dev_ids'),0) + devices = child_at(child(self.pci_perm_dev_config, + 'unconstrained_dev_ids'),0) if self.__matchPCIdev( devices ): log.debug("Permissive mode enabled for PCI device [%s]" % self.devid) -- 2.30.2